package com.dwxt.cms.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/admin/page")
public class PageControllerAdmin {

    @RequestMapping("/{page}")
    public ModelAndView page(@PathVariable String page) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("/" + page);
        return modelAndView;
    }
}
